import HttpClient, { HttpClientConfig } from "axios-mapper";
import networkConfig from "config/net.config";

const request = (hasToken: Boolean = true) => {
	const config: HttpClientConfig = {
		baseURL: networkConfig.baseUrl,
		headers: {
			token: "",
		},
	};
	return new HttpClient(config);
};

export default request;
